<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<link rel="stylesheet" type="text/css" href="<%=path%>/css/base.css" />
		<script type='text/javascript' src='<%=path%>/dwr/engine.js'></script>
		<script type='text/javascript' src='<%=path%>/dwr/util.js'></script>
		<script type="text/javascript" src="<%=path%>/js/popup.js"></script>
		<script language="javascript" type="text/javascript"
			src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
		<script language="javascript">
		   function save()
		    {
		    
		       
		         var name = document.getElementById('name').value;
		        if(name==null || name==''){
		           alert('请输入姓名');
		           return;
		        }
		        var tel = document.getElementById('ftel').value;
		        if(tel==null || tel==''){
		           alert('请输入电话');
		           return;
		        }
		        var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; 
		        if(!myreg.test(tel)) 
				{ 
				    alert('请输入有效的手机号码！'); 
				    return; 
				} 
		        document.formAdd.submit();
		    }
        </script>
	</head>

	<body leftmargin="2" topmargin="9"
		background='<%=path%>/images/allbg.gif'>
		<form action="<%=path%>/studentEdit.action" name="formAdd"
			method="post">
			<input type="hidden" name="id" value="${student.id}" />
			<input type="hidden" id="uname" name="uname"
							value="${student.uname}" maxlength="50" />
							
							<input type="hidden" id="sno" name="sno"
							value="${student.sno}" maxlength="50" />
							
							<input type="hidden" id="state" name="state"
							value="${student.state}" maxlength="50" />
							
							
<input type="hidden" id="upwd" name="upwd" value="${student.upwd}"
							maxlength="50" />
			<table width="98%" align="center" border="0" cellpadding="4"
				cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom: 8px">
				<tr bgcolor="#EEF4EA">
					<td colspan="3" background="<%=path%>/images/wbg.gif"
						class='title'>
						<span>学生信息</span>
					</td>
				</tr>


				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						学号：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						${sessionScope.user.sno}

					</td>
				</tr>

				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						姓名：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						${sessionScope.user.name}

					</td>
				</tr>

				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						性别：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
					 ${sessionScope.user.sex}
					</td>
				</tr>

				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						出生日期：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						${sessionScope.user.birthday}

					</td>
				</tr>

				 

				 
				<tr align='center' bgcolor="#FFFFFF"
					onMouseMove="javascript:this.bgColor='red';"
					onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
					<td width="25%" bgcolor="#FFFFFF" align="right">
						联系电话：
					</td>
					<td width="75%" bgcolor="#FFFFFF" align="left">
						${sessionScope.user.ftel}

					</td>
				</tr>

				  
				   

 

				 
			</table>
		</form>
	</body>
</html>